<template>
  <div class="wrapper">
    <div class="dailyRe">
      <!-- 导航栏 -->
      <div class="daily-nav">
        <div class="my-back" v-on:click="backFn()">
          <i class="iconfont icon-arrowLeft-fill"></i>
        </div>
        <div class="daily-red">
          <span>每日提醒</span>
        </div>
      </div>
      <!-- 闹钟 -->
      <div class="daily-clock">
        <div class="icon-clock">
          <i class="iconfont icon-naozhong1"></i>
        </div>
        <div class="clock-txt">
          <span>从今天起，做一个阅读的人。</span>
        </div>
      </div>
      <!-- 提醒 -->
      <pc-block>
        <template v-slot:remq>
          <span>每日提醒</span>
        </template>
        <template v-slot:remw>
          <div class="circle_r"></div>
          <!-- 宽度 -->
          <div :class="{ 'circle_w ': isSlide == false,'c_success ': isSlide ==  true}" @click="slideLeft"></div>
          <!-- 圆 -->
          <div  :class="{ 'circle_round ': isSlide == false,'c_active ': isSlide ==  true}" @click="slideLeft"></div>
        </template>
      </pc-block>
      <!-- 提醒 -->
      <pc-block>
        <template v-slot:remq>
          <span>提醒时间</span>
        </template>
        <template v-slot:remw>
          <span>8:00</span>
          <i class="iconfont icon-youjiantou"></i>
        </template>
      </pc-block>
    </div>
  </div>
</template>

<script>
import pcBlock from "@/public/pc_block.vue";

export default {
  data() {
    return {
      num: 0,
      isSlide: false,
    };
  },
  methods: {
    backFn() {
      this.$router.go(-1);
    },
    slideLeft() { 
      //取反
      this.isSlide =! this.isSlide;
    },
  },
  components: {
    pcBlock,
  },
};
</script>

<style lang="scss" scoped>
@import "../assets/css/reset.css";
.wrapper {
  width: 100%;
  height: 666px;
  background: #fff;
}
.dailyRe {
  .daily-nav {
    height: 50px;
    position: relative;

    div {
      height: 50px;
      position: absolute;
    }
    .my-back {
      width: 50px;
      text-align: center;
      line-height: 50px;
      i {
        font-size: 30px;
      }
    }
    .daily-red {
      width: 100px;
      left: 38%;
      text-align: center;
      line-height: 50px;
      font-size: 20px;
      font-weight: bold;
    }
  }
  // 闹钟
  .daily-clock {
    height: 300px;
    text-align: center;
    .icon-clock {
      height: 200px;
      line-height: 280px;
      i {
        font-size: 2rem;
      }
    }
    .clock-txt {
      font-size: 18px;
    }
  }
}
</style>

